using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using IGlobalist.Cms.Bll;
using IGlobalist.Cms.Model;
using IGlobalist.Cms.Common;

namespace IGlobalist.Cms.Admin
{
    public partial class ResourceFileManagement : AdminBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ucActionBar.ObjectTypeCurrent = CmsObjectType.ResourceFile;
                ucActionBarBottom.ObjectTypeCurrent = CmsObjectType.ResourceFile;
            }
            
            ucResourceFolderTree.TreeNodeClick += ucResourceFileList.DoBindGridViewFile;
            ucResourceFolderTree.TreeNodeClick += ucResourceFileAddEdit.DoBindDropDownListFolder;
            ucResourceFolderTree.TreeNodeClick += ucResourceFileList.DoShow;

            ucResourceFolderTree.TreeNodeClick += ucResourceFileAddEdit.DoHidden;
            ucResourceFolderTree.TreeNodeClick += HiddenInfo;

            ucResourceFileList.EventDataResoucesChange += ucResourceFileAddEdit.DoBindFile;
            ucResourceFileList.EventDataResoucesChange += ucResourceFileAddEdit.DoShow;
            ucResourceFileList.EventDataResoucesChange += ucResourceFileList.DoHidden;
            ucResourceFileList.EventDataResoucesChange += ucActionBar.DoEditClassClick;
            ucResourceFileList.EventDataResoucesChange += ucActionBarBottom.DoEditClassClick;
            

            ucActionBar.NewButtonClick += ucResourceFileAddEdit.DoAddFile;
            ucActionBar.NewButtonClick += HiddenInfo;
            ucActionBar.NewButtonClick += ucResourceFileAddEdit.DoShow;
            ucActionBar.NewButtonClick += ucResourceFileList.DoHidden;
            ucActionBarBottom.NewButtonClick += ucResourceFileAddEdit.DoAddFile;
            ucActionBarBottom.NewButtonClick += ucResourceFileAddEdit.DoShow;
            ucActionBarBottom.NewButtonClick += ucResourceFileList.DoHidden;
            ucActionBarBottom.NewButtonClick += HiddenInfo;
            ucActionBarBottom.NewButtonClick += ucActionBar.DoEditClassClick;
            ucActionBarBottom.NewButtonClick += ucActionBarBottom.DoEditClassClick;
            ucActionBar.NewButtonClick += ucActionBarBottom.DoEditClassClick;
            ucActionBar.NewButtonClick += ucActionBar.DoEditClassClick;
            ucResourceFileAddEdit.SaveContent += ucResourceFileList.DoBindGridViewFileSession;
            ucResourceFileAddEdit.SaveContent += ucResourceFileList.DoShow;
            ucResourceFileAddEdit.SaveContent += ucResourceFileAddEdit.DoHidden;
            ucResourceFileAddEdit.SaveContent += ucActionBar.DoViewClick;
            ucResourceFileAddEdit.SaveContent += ucActionBarBottom.DoViewClick;
            ucActionBar.SaveButtonClick += ucResourceFileAddEdit.DoSaveFile;
            ucActionBarBottom.SaveButtonClick += ucResourceFileAddEdit.DoSaveFile;
           


        }
        public void HiddenInfo(object sender, EventArgs e)
        {
            pnlInfo.Visible = false;
        }
    }
}
